package com.chens.common.config;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 文件存储配置类
 * @author chensh
 * @date 2025/08/02
 */

@Component
@ConfigurationProperties(prefix = "file")
public class FileStorageProperties {
    /**
     * 文件上传路径
     */
    private String uploadDir;

    public FileStorageProperties(String uploadDir) {
        this.uploadDir = uploadDir;
    }

    public FileStorageProperties() {}

    public String getUploadDir() {
        return uploadDir;
    }

    public void setUploadDir(String uploadDir) {
        this.uploadDir = uploadDir;
    }
}